package com.lungle.warmdiary.app.model.response;

import com.lungle.warmdiary.app.AppException;
import com.lungle.warmdiary.app.model.Entity;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class Comment extends Entity {


    /**
     * userid : 2
     * user : tiantest
     * content : 试用感受佳
     * images : ["http://img.ma.social-touch.com/m/v/img/201608/9cee9a60d50a13865ce0471c4f161609.png"]
     * rate : 5
     * time : 2016-08-10 00:00:00
     */
    private static final long serialVersionUID = 1L;

    private String userid;
    private String user;
    private String content;
    private String rate;
    private String time;
    private List<String> images;

    //后面设置
    private String sharelink;
    private String sharelinkTitle;
    private int status;

    public String getSharelink() {
        return sharelink;
    }

    public void setSharelink(String sharelink) {
        this.sharelink = sharelink;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getSharelinkTitle() {
        return sharelinkTitle;
    }

    public void setSharelinkTitle(String sharelinkTitle) {
        this.sharelinkTitle = sharelinkTitle;
    }

    public static Comment parse(InputStream inputStream) throws IOException, AppException {
        Comment comment = new Comment();

        return comment;

    }
}
